package e2q.security.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;

/**
 * E2qSmLoginRole entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "e2q_sm_login_role")
public class E2qSmLoginRole extends e2q.web.orm.Persistent implements
		java.io.Serializable {

	// Fields

	private Long id;
	private E2qSmApplication e2qSmApplication;
	private String lroleName;
	private String lroleValue;

	// Property accessors
	@Override
	public String toString() {
		return id.toString();
	}
	@Id
	@GeneratedValue(generator = "pk")
	@Column(name = "lroleId")
	@GenericGenerator(name = "pk", strategy = "e2q.web.orm.IdGenerator")
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@ManyToOne
	@JoinColumn(name = "lroleApplicationId")
	@NotFound(action = NotFoundAction.IGNORE)
	public E2qSmApplication getE2qSmApplication() {
		return this.e2qSmApplication;
	}

	public void setE2qSmApplication(E2qSmApplication e2qSmApplication) {
		this.e2qSmApplication = e2qSmApplication;
	}

	@Column(name = "lroleName")
	public String getLroleName() {
		return this.lroleName;
	}

	public void setLroleName(String lroleName) {
		this.lroleName = lroleName;
	}

	@Column(name = "lroleValue")
	public String getLroleValue() {
		return this.lroleValue;
	}

	public void setLroleValue(String lroleValue) {
		this.lroleValue = lroleValue;
	}

}